package com.tupi.project.http;

import com.tupi.project.bean.BaseBean;
import com.tupi.project.bean.MineInfoBean;
import com.tupi.project.bean.PullToRefreshBean;
import com.tupi.project.bean.UserInfoBean;

import javax.inject.Inject;

import io.reactivex.Flowable;

/**
 * Created by codeest on 2016/8/3.
 */
public class HttpHelper implements HttpApiInf
{
    
    private HttpApis mApis;
    
    @Inject
    public HttpHelper(HttpApis apis)
    {
        this.mApis = apis;
    }
    
    @Override
    public Flowable<BaseBean<String, UserInfoBean>> reqLogin(String phone, String password)
    {
        return mApis.reqLogin(phone, password);
    }
    
    @Override
    public Flowable<BaseBean<String, MineInfoBean>> reqUserInfoDetail()
    {
        return mApis.reqUserInfoDetail();
    }
    
    @Override
    public Flowable<BaseBean<PullToRefreshBean, String>> reqIndexDiscountRoute(int page)
    {
        return mApis.reqIndexDiscountRoute("厦门市", 10, page);
    }
    
    
}
